package com.demo.rabbitmq.controller;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class MyRabbitListner {
    @RabbitListener(queues = "item_queue")
    public void mes(String msg) {

        System.out.println("消费者---：" + msg);

    }
}
